<?php 
$url = isset($_GET['url'])?$_GET['url']:'';
if(empty($url)){
	echo '<meta http-equiv="content-type" content="text/html;charset=utf-8">';
	echo '-使用默认Proxy:	http://proxy.imakesoft.net/index.php?url=http://www.qq.com<br/>';
	echo '-使用SAE_FetchUrl:http://proxy.imakesoft.net/fetchurl.php?url=http://www.qq.com<br/>';
	echo '-使用SAE_PHPcurl: http://proxy.imakesoft.net/curl.php?url=http://www.qq.com<br/>';
}else{
    $f = new SaeFetchurl();
    $content = $f->fetch($url);
    if($f->errno() == 0)  echo $content;
    else echo $f->errmsg();
}
?>